package com.tongguan.paypos.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.tongguan.paypos.R;
import com.tongguan.paypos.base.BaseFragment;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Joylive on 2016/12/15 .
 */

public class SystemManageFragment extends BaseFragment {

    @BindView(R.id.setting_communication)
    TextView mSettingCommunication;
    @BindView(R.id.setting_print_manage)
    TextView mSettingPrintManage;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_system_manage, container, false);
        ButterKnife.bind(this, rootView);
        setTitle("系统设置");
        initEvent();
        return rootView;
    }

    private void initEvent() {
        mSettingCommunication.setOnClickListener(v ->
                getFragmentManager().beginTransaction().replace(R.id.container, new SettingConnectFragment()).addToBackStack(null).commit());
        mSettingPrintManage.setOnClickListener(v ->
                getFragmentManager().beginTransaction().replace(R.id.container, new SettingPrintFragment()).addToBackStack(null).commit());
    }
}
